package cn.richard.home.api.service

import cn.richard.home.api.data.PicCategoryList
import cn.richard.home.api.data.PicList
import cn.richard.base.bean.ResultData
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

/**
 *
 * @ProjectName: PicApp
 * @Author: wuzhiguo@aiforward.com
 * @CreateDate: 2021/9/1 6:00 下午
 * @Description:
 */
interface PictureService {

    @GET("v1/vertical/category")
    suspend fun getPicCategory(
        @Query("adult") adult: Boolean,
        @Query("first") first: Int
    ): ResultData<PicCategoryList>

    @GET("v1/vertical/category/{categoryId}/vertical")
    suspend fun getPicList(
        @Path("categoryId") categoryId: String,
        @Query("limit") limit: Int,
        @Query("skip") skip: Int,
        @Query("adult") adult: Boolean,
        @Query("first") first: Int,
        @Query("order") order: String,
    ): ResultData<PicList>

}